package com.caishi.lkx.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.caishi.lkx.user.model.WeixinCodeModel;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

public interface WeixinCodeMapper extends BaseMapper<WeixinCodeModel> {
    @Select("select * from weixin_code where id = #{id}")
    WeixinCodeModel selectById(int id);
    @Delete("delete from weixin_code where id = #{id}")
    boolean deleteById(int id);

    @Update("update weixin_code set url = #{url},updator=#{updator},update_time=#{updateTime},name=#{name} where id = #{id}")
    int updateById(WeixinCodeModel weixinCodeModel);
}
